#ifndef TSB_BASE_STATES
#define TSB_BASE_STATES
/*
* 
* @license	Apache License 2.0
* @author	Eugene Kuznetsov
*
*/

namespace Base
{
	enum eState
	{
		STATE_OK = 1,
		STATE_NOT_OK,
		STATE_UNKNOWN
	};
};

namespace Controller
{
	enum eInitState
	{
		INITIALIZED = 1
	};
};

namespace Link
{
	enum eListenState
	{
		BINDED = 1,
		LISTENING,
		REQUEST_CLOSE,
		CLOSING,
		CLOSED,
		LISTEN_ERROR
	};

	enum eConnectState
	{
		CONNECTING = 1,
		CONNECTED,
		DISCONNECTING,
		DISCONNECTED,
		LINK_ERROR
	};

	enum eLinkIOState
	{
		WRITE_OK = 1,
		WRITE_ERROR,
		WRITE_CLOSE,
		READ_OK,
		READ_ERROR,
		READ_CLOSE,
		UNKNOWN_ERROR
	};
};

namespace Device
{
	enum eType
	{
		INTELLITRAC = 1,
		TELTONIKA,
		UNKNOWN
	};

	enum eTargetServers
	{
		SERVER_1 = 0,
		SERVER_2,
		SERVER_3
	};
};

#endif
